<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Inno Setup Help</title>
<script type="text/javascript"><!--

var contentsFrameLoaded = false;
var currentTopic = "";

function trigger_sync_contents()
{
	if (contentsFrameLoaded && currentTopic !== "") {
		window.frames["contentsframe"].postMessage("ishelp_sync_contents:" + currentTopic, "*");
	}
}

function contentsframe_loaded()
{
	// The contents frame has either completed loading for the first time
	// (possibly *after* the browser loaded the body frame), or was
	// individually reloaded and now needs re-syncing.

	contentsFrameLoaded = true;
	trigger_sync_contents();
}

window.addEventListener("message", (event) => {
	//console.log("index.htm message received:", event.data);

	if (typeof event.data === "string" && event.data.startsWith("ishelp_topic_loaded:")) {
		currentTopic = event.data.substring(20);
		trigger_sync_contents();
	}
});

--></script>
</head>
<frameset cols="272, *">
  <frame name="contentsframe" title="Contents/Index" src="contents.htm" onload="contentsframe_loaded();" />
  <frame name="bodyframe" title="Topic body" src="topic_whatisinnosetup.htm" />
  <noframes>
    <body>
      <p>Your browser does not support frames.</p>
      <p><a href="contents.htm">View the table of contents</a></p>
    </body>
  </noframes>
</frameset>
</html>
